html {
  font-size: 1rem;
}

body {
  margin: 0;
  font-family: Helvetica;
  background-color: #29f1c3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.row {
  width: 8rem;
  margin: .6rem 0;
  position: relative;
}

.row input {
  font-size: 1rem;
  border: 1px solid #03c9a9;
  border-radius: 4px;
  margin: 0;
  padding: .8rem 1rem;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, .25);
  width: 90%;
  box-sizing: border-box;
  color: #2e3131;
  outline: none;
  transition: all ease-in-out .2s;
}

.row label {
  position: absolute;
  left: 1rem;
  top: .8rem;
  color: #ccc;
  transition: all ease-in-out .2s;
  cursor: text;
}

h2 {
  font-size: 2rem;
  letter-spacing: .1rem;
  margin-bottom: 2rem;
}

.row input:focus {
  border: 1px solid #1ba39c;
}

.row input:focus + label {
  transform: translateX(calc(-100% - 2.5rem));
  color: #2e3131;
}

input:not(:focus):not(:placeholder-shown) + label {
  color: rgba(0, 0, 0, 0);
}

.row button {
  background: none;
  border: none;
  position: absolute;
  top: calc(50%);
  transform: translateY(-50%);
  right: -2rem;
  margin: 0;
  padding: 0;
  outline: none;
  display: none;
}

.row input[type="search"]:not(:placeholder-shown) ~ button {
  display: inline-block;
}

button1 {  
  width: 20rem;  
  padding:1rem;  
  background-color: #428bca;  
  border-color: #357ebd;  
  color: #fff;  
  -moz-border-radius: 10px;  
  -webkit-border-radius: 10px;  
  border-radius: 10px; /* future proofing */  
  -khtml-border-radius: 10px; /* for old Konqueror browsers */  
  text-align: center;  
  vertical-align: middle;  
  border: 1px solid transparent;  
  font-weight: 900;  
  font-size:125%  
}

button2 {  
  width: 10rem;  
  padding:1rem;  
  background-color: #ff3333;  
  border-color: #357ebd;  
  color: #fff;  
  -moz-border-radius: 10px;  
  -webkit-border-radius: 10px;  
  border-radius: 10px; /* future proofing */  
  -khtml-border-radius: 10px; /* for old Konqueror browsers */  
  text-align: center;  
  vertical-align: middle;  
  border: 1px solid transparent;  
  font-weight: 900;  
  font-size:125%  
}

input{
  outline-style: none ;
  border: 1px solid #ccc; 
  border-radius: 3px;
  padding: 13px 14px;
  width: 95%;
  font-size: 14px;
  font-weight: 700;
  font-family: "Microsoft soft";
}

input:focus{
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
}

label {
  position: absolute;
  left: 1rem;
  top: .8rem;
  color: #ccc;
  transition: all ease-in-out .2s;
  cursor: text;
}

input:focus + label {
  transform: translateX(calc(-100% - 2.5rem));
  color: #2e3131;
}